<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.model.Fault" %>
<%@ page import="com.control.FaultControl"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type"
			content="text/html; charset=UTF-8">
		<title>Insert title here</title>
	</head>
	<body>
		<%
			request.setCharacterEncoding("UTF-8");
			int fault_id = Integer.parseInt(request.getParameter("id"));
			FaultControl fc = new FaultControl();
			Fault fault = new Fault();
			fault = fc.getFault(fault_id);
			boolean flag = fault.getFault_deal();
		%>
		<table width="98%" border="0" align="center">
			<tr>
				<td></td>
			</tr>
			<tr>
				<td></td>
			</tr>
			<tr>
				<td>
					<fieldset>
						<legend>
							处理学生的报修信息
						</legend>
						<form action="fault_manage_deal.jsp?fault_id=<%=fault_id %>&flag=<%=flag %>" name="form1" method="post">
						<table width="35%" border="0" align="center" cellspacing="15"
							cellpadding="0">
							<tr>
								<td>
									<table width="99%" border="1" align="center" cellpadding="0"
										cellspacing="0">
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>寝室</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=fault.getDorm_name()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>报修类型</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=fault.getFault_type()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>故障描述</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=fault.getFault_des()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>报修时间</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=fault.getFault_time()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>报修人</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=fault.getStu_name()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="30" align="center" bgcolor="#D9F0FF">
												<span>电话号码</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><%=fault.getStu_tel()%></span>
											</td>
										</tr>
										<tr>
											<td width="40%" height="100" align="center" bgcolor="#D9F0FF">
												<span>管理员回复</span>
											</td>
											<td width="60%" height="30" align="center" bgcolor="#FFFFFF">
												<span><textarea name="reply" cols="30" rows="5" id="reply"><%=fault.getFault_reply() %></textarea></span>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
							<td>
								<table width="99%" border="0" align="center" cellpadding="0"
										cellspacing="0">
									<tr>
										<td>
											<div align="right"></div>
											<div align="center">
												<input type="submit" value="提交" 
													style="background: url(../../images/button.gif) no-repeat; border: 0px; height: 28px; width: 62px;" />
												&nbsp;&nbsp;&nbsp;&nbsp;
												<input name="input" type="reset" value="重置"
													style="background: url(../../images/button.gif) no-repeat; border: 0px; height: 28px; width: 62px;" />
											</div>
										</td>
					               </tr>
								</table>
								</td>
								</tr>
						</table>
						</form>
					</fieldset>
				</td>
			</tr>
		</table>
	</body>
</html>